<template>
    <div >
      <div class="hd">
        <span @click="$router.go(-1)"> 返回 </span>
         {{ad.title}}
      </div>
      <div class="ctct" v-html="ad.content"></div>

    </div>
</template>

<script>
export default {
  name: 'Account',
  data () {
    return {
      ad: {
        title: '',
        content: ''
      }
    }
  },
  beforeMount: async function () {
    let res = await this.$api.post('/admin/getad', {id: this.$route.params.id})
    if (res.data.state) {
      this.ad = res.data.data
    }
  },
  methods: {

  }
}
</script>

<style scoped>
  .br{
    border:1px solid red
  }
  .actop{
    height: 60px;
    padding:30px 20px 20px;
    border-bottom:2px solid #e9e9e9
  }

  .avt{
    height: 60px;
    width: 60px;
    box-sizing: border-box;
    border-radius: 50%;
    position: relative;
  }
  .avt > img{
    width: 100%;
    border-radius: 50%;
  }
  .acname{
    font-weight: 500;
    font-size: 25px;
    color:#666;
  }
  .acname + span{
    font-size: 12px;
    color:#999
  }
.aczone{
  padding:10px 20px
}
  .acitem{
    padding:10px 0px;
    border-bottom:1px solid #e9e9e9;
    color:#666;
    position: relative;
    font-size: 16px;
  }
.acitem span{
  display: block;
  font-size: 12px;
  line-height:20px;
  color:#999
}
  .acitem .fr{
    font-size: 14px;
    padding-top: 10px;
  }
  #qrcode{
    width: 30px;
    height: 30px;
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    left:70px
  }
  .acitem .mr{
    color:orangered;
    font-size: 14px;
  }
  .ctct{
    padding:10px 15px
  }
</style>
